/*
@name: main.js
@description: electron配置文件信息
@author: ChangHao
@time: 2020-11-02 11:16:18
*/
let window;
const { app, BrowserWindow } = require('electron');
const isDev = require('electron-is-dev');
const loadUrl = isDev ? "http://localhost:3000" : "你的项目部署的域名"
const { nativeTheme } = require('electron')
console.log('当前系统配色模式==>',nativeTheme.shouldUseDarkColors)
app.on('ready', function () {
    window = new BrowserWindow({
        width: 800,
        height: 800,
        minWidth:710,
        minHeight:300,
        // titleBarStyle: 'hidden',
        // frame: false ,
        // transparent:true,
        webPreferences: {
            nodeIntegration: true,
        }
    });
    window.loadURL(loadUrl);
})
